#if !defined(AFX_BCTINETTIBALPAGE_H__C177E467_1B6A_4DE7_98A0_38E458DFF56F__INCLUDED_)
#define AFX_BCTINETTIBALPAGE_H__C177E467_1B6A_4DE7_98A0_38E458DFF56F__INCLUDED_

#include "ScrollPage.h"
#include "../Common/LinkEdit.h"
#include "../Common/LinkComboBox.h"
#include "../Res/resource.h"

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// BCTinettiBalPage.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CBCTinettiBalPage dialog

class CBCTinettiBalPage : public CScrollPage
{
// Construction
public:
	CBCTinettiBalPage(CWnd* pParent = NULL, BOOL bBigRes = TRUE);   // standard constructor
	
	static BOOL		ScoreFieldsCheck(LPVOID pParam);
	enum { BODYCHECKSCALEID = 10 };
	enum { INPUT_EDIT_CTRL_COUNT = 21};
	
	virtual int		SaveData(CString strMRN, int nDiagSN, BOOL bIsDraft);
	virtual BOOL	ShowTableData(CString strMRN, int nDiagSN);
	virtual BOOL	ClearData();
	virtual BOOL	EnableInputControls(BOOL bEnable);
	virtual BOOL	IsPageCurDayBlank();
	
	BOOL			ShowTableDataWithStartCol(CString strMRN, int nDiagSN, int nStartCol);
	BOOL			SetLastColTitile(CString strDate, int nDiagSN);
	
// Dialog Data
	//{{AFX_DATA(CBCTinettiBalPage)
	enum { IDD = IDD_BODYCHECK_PAGE_TINETTI_BAL, SD_IDD = IDD_BODYCHECK_PAGE_TINETTI_BAL_SD };
	CLinkEdit	m_edtTine101;
	CLinkEdit	m_edtTine102;
	CLinkEdit	m_edtTine103;
	CLinkEdit	m_edtTine104;
	CLinkEdit	m_edtTine105;
	CLinkEdit	m_edtTine106;
	CLinkEdit	m_edtTine107;
	CLinkEdit	m_edtTine108;
	CLinkEdit	m_edtTine109;
	CLinkEdit	m_edtTine110;
	CLinkEdit	m_edtTine111;
	CLinkEdit	m_edtTine112;
	CLinkEdit	m_edtTine113;
	CLinkEdit	m_edtTine114;
	CLinkEdit	m_edtTine115;
	CLinkEdit	m_edtTine116;
	CLinkEdit	m_edtTine117;
	CLinkEdit	m_edtTine118;
	CLinkEdit	m_edtTine119;
	CLinkEdit	m_edtTine120;
	CLinkEdit	m_edtTine121;
	
	CLinkEdit	m_edtTine201;
	CLinkEdit	m_edtTine202;
	CLinkEdit	m_edtTine203;
	CLinkEdit	m_edtTine204;
	CLinkEdit	m_edtTine205;
	CLinkEdit	m_edtTine206;
	CLinkEdit	m_edtTine207;
	CLinkEdit	m_edtTine208;
	CLinkEdit	m_edtTine209;
	CLinkEdit	m_edtTine210;
	CLinkEdit	m_edtTine211;
	CLinkEdit	m_edtTine212;
	CLinkEdit	m_edtTine213;
	CLinkEdit	m_edtTine214;
	CLinkEdit	m_edtTine215;
	CLinkEdit	m_edtTine216;
	CLinkEdit	m_edtTine217;
	CLinkEdit	m_edtTine218;
	CLinkEdit	m_edtTine219;
	CLinkEdit	m_edtTine220;
	CLinkEdit	m_edtTine221;
	
	CLinkComboBox	m_cmbTine301;
	CLinkComboBox	m_cmbTine302;
	CLinkComboBox	m_cmbTine303;
	CLinkComboBox	m_cmbTine304;
	CLinkComboBox	m_cmbTine305;
	CLinkComboBox	m_cmbTine306;
	CLinkComboBox	m_cmbTine307;
	CLinkComboBox	m_cmbTine308;
	CLinkComboBox	m_cmbTine309;
	CLinkComboBox	m_cmbTine310;
	CLinkComboBox	m_cmbTine311;
	CLinkComboBox	m_cmbTine312;
	CLinkComboBox	m_cmbTine313;
	CLinkComboBox	m_cmbTine314;
	CLinkComboBox	m_cmbTine315;
	CLinkComboBox	m_cmbTine316;
	CLinkComboBox	m_cmbTine317;
	CLinkComboBox	m_cmbTine318;
	CLinkComboBox	m_cmbTine319;
	CLinkComboBox	m_cmbTine320;
	CLinkEdit	m_edtTine321;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CBCTinettiBalPage)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CBCTinettiBalPage)
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
		
private:
	INPUT_FIELD_INFO			m_InputFieldArray1[INPUT_EDIT_CTRL_COUNT];
	INPUT_FIELD_INFO			m_InputFieldArray2[INPUT_EDIT_CTRL_COUNT];
	INPUT_FIELD_INFO			m_InputFieldArray3[INPUT_EDIT_CTRL_COUNT];
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_BCTINETTIBALPAGE_H__C177E467_1B6A_4DE7_98A0_38E458DFF56F__INCLUDED_)
